home *** CD-ROM | disk | FTP | other *** search
- !QRT - the Quick Ray Tracer
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Main ray tracer code & documentation copyright 1988, 1989 Steve Koren.
-
- Archimedes port & documentation copyright 1989, 1990 Philip Colmer.
-
- This file documents version 1.5c of !QRT.
-
- ----------------------------------------------------------------------------
-
- QRT is a public domain ray tracer written in C by Steve Koren. It has
- been ported on to the Archimedes and adapted for the RISC OS environment by
- Philip Colmer. This file documents differences between the Archimedes
- version and the version detailed in the remaining documentation.
-
- Other documentation:
-
- CFG Context free grammar rules for QRT
- Discuss Discussions of some QRT feastures
- Errors Explanation of errors raised by QRT
- Intro An introduction to QRT
- Language A definition of QRT's language
- ReadMe_1 Steve Koren's copyright notice
- UserMan The user manual for QRT
-
- When QRT is started, it produces a window on the desktop. There are three
- output options:
-
- RAW file: If this option is ticked, QRT will create a file containing:
- 2 bytes: x resolution
- 2 bytes: y resolution
- then for each line, x bytes of red, x bytes of green and x bytes
- of blue.
- The main reason for having this option is to allow the
- Archimedes to be used to perform the ray tracing and then create
- the image for some other computer.
-
- IMG file: If this option is ticked, QRT will create a sprite file
- containing one sprite, namely the image. This is the more usual
- option.
-
- Stats file: If this option is ticked, QRT will create a statistics file
- containing information like the number of objects and number of
- rays.
-
- There is one ray-tracing option:
-
- No shadows: If this option is ticked, no shadows will be built when the
- object is ray-traced.
-
- Any 256-colour mode can be set to create the image in. The main impact on
- this, and the four size options, is the final image size. Recommended screen
- modes are 13, 15 and 21. Both the screen mode and the image size selection
- are saved in QRT's setup file for later use. After changing the screen mode,
- press RETURN.
-
- To ray-trace an image, drop the DIRECTORY containing the QRT file on to
- the QRT window. The START icon will then become visible. If you are happy
- with the settings, click on the START icon. If you want to suspend or abort
- ray-tracing, click on the appropriate icon. Suspending ray-tracing allows
- you to examine the RAW or IMG file so far so that you can check the
- progress.
-
- If the final image looks too tall or too wide, it is possible to change
- the aspect ratio of the image. To do this, position the pointer over the QRT
- window and click MENU. Slide to the right of the Aspect ratio option and
- enter the required value. This value will be kept in QRT's setup file.
-
- Changes from the original QRT
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1. Since QRT is an application, there are no command line options. Any
- mention of this in the documentation should be ignored.
-
- 2. QRT supports the FILENAME keyword, but it is ignored. Any output files
- are always placed in the directory dropped on to QRT.
-
- 3. Some of the documentation will mention increasing the stack size. !QRT
- takes memory as it is required. It should be noted that the larger the
- resulting image size and the more complex the QRT file, the more memory is
- required. If the application runs out of memory, remove any unnecessary
- tasks. If the application runs out of stack, it will need a bigger initial
- slotsize.
-
- Known bugs
- ~~~~~~~~~~
- 1. If you have perfect reflective surfaces, the rays can bounce around ad
- infinitum, resulting in QRT running out of stack and disappearing off the
- desktop, leaving the hourglass on. The solution is to reduce the
- reflectivity from 1 to 0.9
-